Skip to content

Remove unused parameters from repository functions#207

Merged
amitsaha merged 1 commit into
amitsaha:masterfrom
rdowavic:feat/remove-unused-params-from-repo-functions
Feb 25, 2026
Merged

Remove unused parameters from repository functions#207
amitsaha merged 1 commit into
amitsaha:masterfrom
rdowavic:feat/remove-unused-params-from-repo-functions

Conversation

@rdowavic

Copy link
Copy Markdown
Contributor

Summary

  • Each get*Repositories function was receiving all 8 parameters from getRepositories, even though most were unused (e.g., getGitlabRepositories received githubRepoType, githubNamespaceWhitelist, ignoreFork, and forgejoRepoType — none of which it uses)
  • Now each function only accepts the parameters it actually needs
  • Functions use typed client pointers (e.g., *github.Client) instead of interface{}, with type assertions moved to the getRepositories dispatcher

Contributes to #67

Test plan

  • go build ./... compiles
  • go test ./... passes
  • No behavior changes — purely a signature cleanup refactor

Each get*Repositories function was receiving all 8 parameters from
getRepositories, even though most were unused. For example,
getGitlabRepositories received githubRepoType, githubNamespaceWhitelist,
ignoreFork, and forgejoRepoType — none of which it uses.

Now each function only accepts what it needs and uses typed client
pointers instead of interface{}, with type assertions and the nil
client check moved to the getRepositories dispatcher.
@rdowavic rdowavic force-pushed the feat/remove-unused-params-from-repo-functions branch from 7aeefa5 to 86b0ca5 Compare February 24, 2026 05:29
@amitsaha amitsaha merged commit 4da7772 into amitsaha:master Feb 25, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants